package com.pojo;

public class OrdId implements java.io.Serializable {
	private Long unitId;
	private String ordNum;
	
	public OrdId() {
		
	}
	
	public OrdId(Long unitId, String ordNum) {
		this.unitId = unitId;
		this.ordNum = ordNum;
	}
	
	public Long getUnitId() {
		return unitId;
	}
	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}
	public String getOrdNum() {
		return ordNum;
	}
	public void setOrdNum(String ordNum) {
		this.ordNum = ordNum;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ordNum == null) ? 0 : ordNum.hashCode());
		result = prime * result + ((unitId == null) ? 0 : unitId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrdId other = (OrdId) obj;
		if (ordNum == null) {
			if (other.ordNum != null)
				return false;
		} else if (!ordNum.equals(other.ordNum))
			return false;
		if (unitId == null) {
			if (other.unitId != null)
				return false;
		} else if (!unitId.equals(other.unitId))
			return false;
		return true;
	}
	
	
}
